from rest_framework import routers
from django.urls import re_path
from .views import *


urlpatterns = [
    re_path(r'city/hotlist/$', CityHotListView.as_view()),
]


router = routers.SimpleRouter()

router.register(prefix='recruits/search', viewset=RecruitsSearchViewSet, base_name='recruits_search')
router.register(prefix='recruits', viewset=RecruitsViewSet, base_name='recruits')
router.register(prefix='enterprise/search', viewset=EnterpriseSearchViewSet, base_name='enterprise_search')
router.register(prefix='enterprise', viewset=EnterpriseViewSet, base_name='enterprise')

urlpatterns += router.urls

